
# [2,'hello',['world'],(1,2),{'key':'value'}]
# lis1 = [1,2,3,5,9,6,7]
# # print (id (lis1))
# # lis1[2] = 4
# # print(lis1)
# # print (id (lis1))
# # lis1 = []
# print (type (lis1))
# t = (1,2,3) #元组
# lis2 = list(t)
# print (lis2)
# print(lis1[::-1])
lis = ['张无忌','赵敏','周芷若','金毛狮王','张三丰']
star = ['杨幂','王静坤','佟丽娅','赵丽颖']
print (len (lis))
lis.append('韦小宝')  #追加元素
# lis.insert(2,'青翼蝠王')
star.extend(lis)
# lis.remove('赵敏')
# lis.clear()
# del lis[2]
# result = lis.pop(2)
star[0]= '赵本山'
print(star)
print(lis)
print (lis[0])
lis[0]= '张无忌大侠'
print(lis)
# for item in star:  # 不能拿到索引，只能展示每一项
#     item = item+'大侠'
#     print(item)


# for i in range(len(star)): #是可以拿到索引的
#     star[i] = star[i]+'大侠'
#     print(star[i])

a ,b = (10,20)
print("a=",a)
print("b=",b)
for index,item in enumerate(star):
    star[index] += '大侠'
print(star)
